import {
	request
} from '@/utils/request.js'

// 发货记录接口
export function getDeliveryRecord(data) { // 发货记录
	return request({
		url: '/record/delivery_record',
		method: 'post',
		data: data
	})
}
export function getDeliverySize(data) { // 发货尺寸
	return request({
		url: '/index/delivery_size',
		method: 'post',
		data: data
	})
}

export function getQuotationList(data) { // 报价记录列表
	return request({
		url: '/quotation/quotation_list',
		method: 'post',
		data: data
	})
}

export function getFreightQuotation(data) { // 货代报价
	return request({
		url: '/quotation/freight_quotation',
		method: 'post',
		data: data
	})
}

export function getHandlingSituation(data) { // 处理情况回显
	return request({
		url: '/record/handling_situation',
		method: 'post',
		data: data
	})
}

export function submitAfterSales(data) { // 售后反馈
	return request({
		url: '/record/submit_after_sales',
		method: 'post',
		data: data
	})
}

export function submitEvaluate(data) { // 服务评价
	return request({
		url: '/record/evaluate',
		method: 'post',
		data: data
	})
}

export function sendDelivery(data) { // 确认发货
	return request({
		url: '/record/send_delivery',
		method: 'post',
		data: data
	})
}

export function isHavePlatform(data) { // 13、售后记录 是否存在平台介入
	return request({
		url: '/record/is_have_platform',
		method: 'post',
		data: data
	})
}

export function submitHandle(data) { // 9、提交 处理情况 | 售后诉求
	return request({
		url: '/record/submit_Handle',
		method: 'post',
		data: data
	})
}

export function completeAfterSales(data) { // 11、协商一致 完成售后
	return request({
		url: '/record/complete_after_sales',
		method: 'post',
		data: data
	})
}

export function afterSalesTypeSelect(data) { // 5、售后类型选择
	return request({
		url: '/record/after_sales_type_select',
		method: 'post',
		data: data
	})
}


// 货源信息接口

export function getDeliverySelect(data) { // 货源信息list接口
	return request({
		url: '/index/delivery_select',
		method: 'post',
		data: data
	})
}

// 货代订单

export function getOrder(data) { // 货代订单
	return request({
		url: '/quotation/order',
		method: 'post',
		data: data
	})
}


// 优质货主接口

// 供应商列表
export function getBlist(data) { // 货代订单
	return request({
		url: '/ApiShop/blist',
		method: 'post',
		data: data
	})
}


// 承接用户选择
export function undertakeUser(data) { // 货代订单
	return request({
		url: '/record/undertake_user',
		method: 'post',
		data: data
	})
}

// 处理类型选择
export function handleTypeSelect(data) {
	return request({
		url: '/record/handle_type_select',
		method: 'post',
		data: data
	})
}
